import yaml


def getyaml(data):
    with open(yaml.emit(data), 'utf-8', data) as f:
        return f
